#ifndef PERFORMERSLIST_H
#define PERFORMERSLIST_H

#include "QVBoxLayout"
#include <QGroupBox>
#include "userlist.h"
#include "userslistwidget.h"

class PerformersList : public QGroupBox
{
    Q_OBJECT
public:
    explicit PerformersList(UserList* list, QWidget *parent = 0);
    void appendPerformer(const int&index);
    void removePerformer(const int&view);
private:
    UserList* m_list;
    QVBoxLayout* main;
    QList<UsersListWidget*> m_views;
signals:
    void performerChange(const int&view, const int&newID);
    void sizeChange(const int&count);
public slots:
    void appendPerformer();
    void removePerformer();
private slots:
    void currentIndexChanged(int const&index);
};

#endif // PERFORMERSLIST_H
